﻿/*
 * Copyright (c) Seagull Consulting, Inc. All rights reserved. See License.txt in the project root for license information.
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace SeagullConsulting.MvcAjaxControls.Data.Models
{
    public class Person
    {
        public int Id { get; set; }
        [Display(Name="First Name")]
        public string FirstName { get; set; }
        [Display(Name = "Last Name")]
        public string LastName { get; set; }
        [Display(Name = "Contact Name")]
        public virtual string Name {
            get {return LastName + ", " + FirstName; }
        }
        [Display(Name = "Address1")]
        public string Address { get; set; }

        //Nagivation
        public int CityId { get; set; }
        public City City { get; set; }
        public DateTime Birthday { get; set; }
        public float Income { get; set; }
        public ICollection<Phone> Phones { get; set; }

    }
}